CUPS 1.2svn Weekly Snapshot, r4699

Created at 21:01 Sep 23, 2005 by mike, last modified at 21:01 Sep 23, 2005

A new weekly snapshot of CUPS 1.2svn (r4699) is now available on the download page:

    http://www.cups.org/software.php

This snapshot contains pre-release software and should not be used on production systems.

Commit Log:

------------------------------------------------------------------------
r4699 | mike | 2005-09-23 17:01:09 -0400 (Fri, 23 Sep 2005) | 13 lines

Remove unused SignalCount variable, and fix permissions of certs dir.

scheduler/conf.c:
    - ReadConfiguration(): Permissions of certs directory should
      be 710 for non-root and 510 for root.

scheduler/cupsd.h:
    - Drop SignalCount variable.

scheduler/log.c:
    - LogMessage(): Don't use SignalCount var anymore.


------------------------------------------------------------------------
r4698 | mike | 2005-09-23 16:32:08 -0400 (Fri, 23 Sep 2005) | 2 lines

Remove old RPMs before building new one...

------------------------------------------------------------------------
r4697 | mike | 2005-09-23 16:29:27 -0400 (Fri, 23 Sep 2005) | 19 lines

Fix domain socket handling (STR #1277)

cups/http.h:
    - Add httpAddrLength() function.

cups/http-addr.c:
    - httpAddrLength(): Added.

scheduler/conf.c:
    - get_address(): Return immediately if we have a domain
      socket address.
    - read_configuration(): Only default to IPv6 if the local
      system supports it and we are not using OpenBSD.

scheduler/listen.c:
    - StartListening(): Use httpAddrLength() for bind calls,
      and revamp the logging to be more useful.


------------------------------------------------------------------------
r4696 | mike | 2005-09-23 16:04:07 -0400 (Fri, 23 Sep 2005) | 20 lines

Don't set the default run group to the default system group, otherwise
the new web interface will always authenticate as root!

conf/cupsd.conf.in:
    - Add DefaultAuthType line.

scheduler/cert.c:
    - AddCert(): Use SystemGroupIDs[0] to initialize root
      certificate.

scheduler/conf.c:
    - ReadConfiguration(): Initialize SystemGroupIDs array, check
      for identical SystemGroup and Group IDs.
    - read_configuration(): Validate SystemGroups and set
      SystemGroupIDs.

scheduler/conf.h:
    - Add SystemGroupIDs array.


------------------------------------------------------------------------
r4695 | mike | 2005-09-23 13:07:14 -0400 (Fri, 23 Sep 2005) | 5 lines

Add OSX compatibility functions for (private) MD5 functions in CUPS -
otherwise some OSX components will stop working when you install CUPS
1.2...


------------------------------------------------------------------------
r4694 | mike | 2005-09-23 12:59:47 -0400 (Fri, 23 Sep 2005) | 12 lines

Fix MacOS X compile problems.

config-scripts/cups-compiler.m4:
    - Only use -pie on Linux.

cups/language.c:
    - appleLangDefault(): apple_name_locale, not _apple_name_locale.

scheduler/job.c:
    - Remove old CFProcessPath references.


------------------------------------------------------------------------
r4693 | mike | 2005-09-23 12:38:45 -0400 (Fri, 23 Sep 2005) | 2 lines

Use getsockname(), not getpeername()...

------------------------------------------------------------------------
r4692 | mike | 2005-09-22 23:04:59 -0400 (Thu, 22 Sep 2005) | 6 lines

Use cups-driverd to get PPD (model) files.

scheduler/ipp.c:
    - copy_model(): Add client_t * parameter and run cups-driverd
      to get the PPD file for the specified model name.

------------------------------------------------------------------------
r4691 | mike | 2005-09-22 16:56:46 -0400 (Thu, 22 Sep 2005) | 35 lines

Update scheduler to use new environment variable API - this reduces code
size and will allow us to add the Apache PassEnv and SetEnv directives
without too much pain.

scheduler/client.c:
    - pipe_command(): Use new cupsdLoadEnv() function.

scheduler/conf.c:
    - ReadConfiguration(): Call cupsdInitEnv() after loading
      cupsd.conf.

scheduler/cupsd.h:
    - Drop TZ global.
    - Add cupsdClearEnv(), cupsdInitEnv(), cupsdLoadEnv(),
      cupsdSetEnv(), and cupsdSetEnvf() functions.

scheduler/dirsvc.c:
    - StartPolling(): Use new cupsdLoadEnv() function.

scheduler/env.c:
    - Added.

scheduler/job.c:
    - StartJob(): Use new cupsdLoadEnv() function.

scheduler/listen.c:
    - StartListening(): Set CUPS_SERVER, CUPS_ENCRYPTION, and
      IPP_PORT environment variables.

scheduler/main.c:
    - main(): Drop TZ environment variable stuff.

scheduler/process.c:
    - Sort functions.

------------------------------------------------------------------------
r4690 | mike | 2005-09-22 15:05:31 -0400 (Thu, 22 Sep 2005) | 6 lines

cups-driverd wrap-up.

scheduler/cups-driverd.c:
    - main(): Fix argument check
    - cat_ppd(): Implement.

------------------------------------------------------------------------
r4689 | mike | 2005-09-22 14:22:35 -0400 (Thu, 22 Sep 2005) | 2 lines

Fix detection of "cancel-job" policy...

------------------------------------------------------------------------
r4688 | mike | 2005-09-22 14:11:02 -0400 (Thu, 22 Sep 2005) | 3 lines

Convert Unicode (UTF-16) text to UTF-8 instead of just writing the low
order bytes.

------------------------------------------------------------------------
r4687 | mike | 2005-09-22 14:04:40 -0400 (Thu, 22 Sep 2005) | 2 lines

Add Creator and Title DSC comments (STR #830)

------------------------------------------------------------------------
r4686 | mike | 2005-09-22 11:27:03 -0400 (Thu, 22 Sep 2005) | 4 lines

Fix non-threaded global stuff.

Add missing libraries for test programs.

------------------------------------------------------------------------
r4685 | mike | 2005-09-22 07:52:38 -0400 (Thu, 22 Sep 2005) | 21 lines

More work on on-line API help, testing.

cgi-bin/help.c:
    - main(): Add support for PATH_INFO to aid debugging.

cups/http.c:
    - http_write(), http_write_chunk(): Mark as static.

doc/help/api-filedir.html:
    - Updated.

doc/help/api-filter.html:
doc/help/api-httpipp.html:
    - Added.

scheduler/client.c:
    - WriteClient(): Flush output before final 0 chunk.

test/run-stp-tests.sh:
    - Valgrind 3.0 renamed --logfile option to --log-file.

------------------------------------------------------------------------
r4684 | mike | 2005-09-21 22:15:56 -0400 (Wed, 21 Sep 2005) | 21 lines

Update API references and web help.

cgi-bin/help.c:
    - main(): Add PATH_INFO support.

cups/normalize.c:
cups/normalize.h:
    - Rename cups__cups_break_class_t to cups_break_class_t.

doc/cups.css:
    - Update table and list styles for on-line help.

doc/help/api-array.html:
doc/help/api-filedir.html:
doc/help/api-ppd.html:
    - Added separated API help files.

doc/help/apirm.html:
    - Removed.


------------------------------------------------------------------------
r4683 | mike | 2005-09-21 18:17:44 -0400 (Wed, 21 Sep 2005) | 5 lines

Cleanup namespace so that private APIs and types use a leading underscore.

Add CUPS API reference manual file.


------------------------------------------------------------------------
r4682 | mike | 2005-09-21 16:59:01 -0400 (Wed, 21 Sep 2005) | 4 lines

Added a new cups_array_t and cupsArray*() functions to the CUPS
API to support sorted lists of data.


------------------------------------------------------------------------
r4681 | mike | 2005-09-21 05:32:25 -0400 (Wed, 21 Sep 2005) | 8 lines

Fix up parsing of client.conf and ~/.cupsrc files.

cups/usersys.c:
    - cupsEncryption(): Use cupsFileGetConf() to read config
      lines, and strcasecmp() to look for Encryption option.
    - cupsServer(): Use strcasecmp() to look for ServerName
      option.

------------------------------------------------------------------------
r4680 | mike | 2005-09-21 05:28:39 -0400 (Wed, 21 Sep 2005) | 121 lines

Make CUPS API threadsafe (STR #1276), replace FILE's with
cups_file_t's in several places, and drop CUPS_STRFTIME_FORMAT
usage.

cgi-bin/ipp-var.c:
    - ippSetCGIVars(): Use "%c" instead of CUPS_STRFTIME_FORMAT.

config.h.in:
    - Add HAVE_PTHREAD_H define.
    - Remote CUPS_STRFTIME_FORMAT define.

config-scripts/cups-common.m4:
    - Remove CUPS_STRFTIME_FORMAT definitions.

config-scripts/cups-threads.m4:
    - Added.

configure.in:
    - Include config-scripts/cups-threads.m4.

cups/emit.c:
    - Make PS code string a constant character array instead of a
      string pointer.

cups/globals.c:
cups/globals.h:
    - Added.

cups/http-addr.c:
    - httpGetHostByName(): Use _cupsGlobals() to get thread-local
      data.

cups/http.c:
    - httpGetDateString(): Use _cupsGlobals() to get thread-local
      data.

cups/ipp.c:
    - General documentation cleanup.
    - ippDateToTime(): Use _cupsGlobals() to get thread-local
      data.
    - ippDeleteAttribute(): Implemented.

cups/ipp-support.c:
    - ippErrorString(), ippOpString(), ippPort(), ippSetPort():
      Use _cupsGlobals() to get thread-local data.

cups/language.c:
    - cupsLangFlush(), cupsLangGet(), appleLangDefault(): Use
      _cupsGlobals() to get thread-local data.

cups/normalize.c:
    - cupsNormalizeMapsGet(), cupsNormalizeMapsFree(),
      cupsNormalizeMapsFlush(), cupsUTF32Normalize(),
      cupsUTF32CaseFold(): Use _cupsGlobals() to get thread-local
      data.
    - get_general_category(), get_bidi_category(),
      get_combining_class(), get_break_class(), get_normmap(),
      get_foldmap(), get_propmap(), get_combmap(),
      get_breakmap(): Use _cupsGlobals() to get thread-local
      data, and use cups_file_t and associated functions instead
      of stdio.

cups/ppd.c:
    - ppdLastError(), ppdOpen2(), ppdOpenFd(),
      ppdSetConformance(): Use _cupsGlobals() to get thread-local
      data.
    - ppdOpenFile(): Use _cupsGlobals() to get thread-local data,
      and use cups_file_t and associated functions instead of
      stdio.
    - ppd_get_group(), ppd_read(): Add and use cups_globals_t
      pointer argument for thread-local data.

cups/tempfile.c:
    - cupsTempFd(): Drop allocation of static filename buffer.
    - cupsTempFile(): Use _cupsGlobals() to get thread-local
      filename buffer.

cups/transcode.c:
    - cupsCharmapFree(), cupsCharmapFlush(): Use _cupsGlobals()
      to get thread-local data.
    - get_sbcs_charmap(), get_vbcs_charmap(): Use _cupsGlobals()
      to get thread-local data, and use cups_file_t and
      associated functions instead of stdio.

cups/usersys.c:
    - cupsEncryption(), cupsServer(): Use _cupsGlobals() to get
      thread-local data, and use cups_file_t and associated
      functions instead of stdio.
    - cupsSetEncryption(), cupsSetPasswordCB(), cupsSetServer(),
      cupsSetUser(), cupsUser(): Use _cupsGlobals() to get
      thread-local data.

cups/util.c:
    - cupsCancelJob(), cupsDoFileRequest(), cupsGetClasses(),
      cupsGetDefault(), cupsGetDefault2(), cupsGetJobs(),
      cupsGetJobs2(), cupsGetPPD(), cupsGetPPD2(),
      cupsGetPrinters(), cupsPrintFiles(), cupsPrintFiles2(),
      cups_connect(): Use _cupsGlobals() to get thread-local
      data.

filter/hpgl-prolog.c:
    - OutputProlog(): Use "%c" instead of CUPS_STRFTIME_FORMAT.

filter/imagetops.c:
    - main(): Use "%c" instead of CUPS_STRFTIME_FORMAT.

filter/texttops.c:
    - WriteProlog(): Use "%c" instead of CUPS_STRFTIME_FORMAT.

scheduler/classes.c:
    - SaveAllClasses(): Use "%c" instead of CUPS_STRFTIME_FORMAT.

scheduler/printers.c:
    - SaveAllPrinters(): Use "%c" instead of CUPS_STRFTIME_FORMAT.

scheduler/subscriptions.c:
    - SaveAllSubscriptions(): Use "%c" instead of CUPS_STRFTIME_FORMAT.

systemv/lpstat.c:
    - show_jobs(): Use "%c" instead of CUPS_STRFTIME_FORMAT.

------------------------------------------------------------------------
r4679 | mike | 2005-09-20 12:02:54 -0400 (Tue, 20 Sep 2005) | 27 lines

Update sample cupsd.conf file and web interface to use the correct policy
syntax, and fix some other bugs.

cgi-bin/admin.c:
    - do_config_server(): Update policy generation code to use
      new syntax, use "Listen *:631" instead of "Port 631", and
      add indentation support to the output for nicer config
      files.

conf/cupsd.conf.in:
templates/edit-config.tmpl.in:
    - Add Location /, Location /admin, and the default policy
      stuff to make setup easier and clearer.

scheduler/client.c:
    - AcceptClient(): Always set hostname pointer after a lookup.

scheduler/conf.c:
    - ReadConfiguration(): Change default policy to use "Order
      deny,allow" so that the access control limits can be set
      exclusively using the Location directive by default.

scheduler/listen.c:
    - StartListening(): Move IPv4 fallback code to the socket
      creation section - otherwise it doesn't actually get used
      on a system that is not configured with IPv6 support.

------------------------------------------------------------------------
r4678 | mike | 2005-09-20 10:10:51 -0400 (Tue, 20 Sep 2005) | 2 lines

Cleanup code formatting...

------------------------------------------------------------------------
r4677 | mike | 2005-09-18 23:04:49 -0400 (Sun, 18 Sep 2005) | 6 lines

Added "media" option support for EFI EFMediaType option (STR
#902)

cups/options.c:
    - cupsMarkOptions(): Add EFMediaType to list of media options.

------------------------------------------------------------------------
r4676 | mike | 2005-09-18 22:53:06 -0400 (Sun, 18 Sep 2005) | 19 lines

Fix buffered write implementation...

cups/http.c:
    - Sort functions by name...
    - httpFlushWrite(): Return the number of bytes flushed.
    - httpPrintf(): Do no cache printf's.
    - http_write(), http_write_chunk(): Add

cups/http.h:
    - Change httpFlushWrite() to return an int.

scheduler/client.c:
    - WriteClient(): Increase write buffer to 16k, and don't
      bother flushing the cache.
    - get_file(): Set data_remaining to the file size.

scheduler/printers.c:
    - LoadAllPrinters(): Fix typo (backends->backend)

------------------------------------------------------------------------
r4675 | mike | 2005-09-18 19:58:56 -0400 (Sun, 18 Sep 2005) | 27 lines

Added write buffering to the HTTP code to improve performance
(STR #547)

The scheduler now uses the attributes-natural-language attribute
to localize banner pages (STR #386)

cups/http.c:
    - httpFlushWrite(): Added.
    - httpWrite(): Use write buffer for small writes.
    - httpPrintf(): Use write buffer for small writes.
    - httpUpdate(): Flush write buffer as needed.

cups/http.h:
    - Change buffer size to 1024 bytes.
    - Add wbuffer and wused fields to http_t structure.
    - Add httpFlushWrite() function.

scheduler/client.c:
    - CloseClient(): Flush write buffer as needed.
    - WriteClient(): Flush write buffer as needed.

scheduler/ipp.c:
    - copy_banner(): Use attributes-natural-language instead of
      con->language to localize banners.



------------------------------------------------------------------------
r4674 | mike | 2005-09-18 01:43:46 -0400 (Sun, 18 Sep 2005) | 21 lines

The scheduler now returns the address that was used to connect to
it (STR #1076)

scheduler/client.c:
    - AcceptClient(): Set servername and serverport.

scheduler/client.h:
    - Add servername and serverport to client_t.

scheduler/conf.c:
    - read_configuration(): Fix reporting of domain socket listen.

scheduler/ipp.c:
    - get_default(), get_printer_attrs(), get_printers(): Use
      servername and  serverport to create dynamic printer URI.

scheduler/printers.c:
    - SetPrinterAttrs(): only set printer-uri-supported for
      remote printers.


------------------------------------------------------------------------
r4673 | mike | 2005-09-18 00:28:54 -0400 (Sun, 18 Sep 2005) | 2 lines

Drop rastertortl filter (superceded by DDK driver...)

------------------------------------------------------------------------
r4672 | mike | 2005-09-18 00:25:46 -0400 (Sun, 18 Sep 2005) | 6 lines

Fixed a problem with N-up printing and OpenOffice (STR #576)

filter/pstops.c:
    - main(): Look for BeginFeature inside a page, and strip out
      feature code when N-up > 1.

------------------------------------------------------------------------
r4671 | mike | 2005-09-18 00:12:48 -0400 (Sun, 18 Sep 2005) | 12 lines

Added support for the GCC position independent executable options
(STR #1209)

Fix missing reference to RGBW colorspace.

config-scripts/cups-compiler.m4:
    - Add configure check for -fpie compiler option when
      compiling with GCC.

filter/raster.c:
    - cups_update_raster(): Add RGBW colorspace.

------------------------------------------------------------------------
r4670 | mike | 2005-09-17 20:40:01 -0400 (Sat, 17 Sep 2005) | 30 lines

Added new BrowseLocalProtocols and BrowseRemoteProtocols
directives to cupsd.conf, allowing for different browse protocols
for local and remote printers (STR #877)

man/cupsd.conf.man:
    - Add new directives.

scheduler/conf.c:
    - ReadConfiguration(): Initialize BrowseLocalProtocols and
      BrowseRemoteProtocols.
    - read_configuration(): Add support for BrowseLocalProtocols
      and BrowseRemoteProtocols.

scheduler/dirsvc.c:
    - SendBrowseDelete(): Use BrowseLocalProtocols.
    - SendBrowseList(): Use BrowseLocalProtocols.
    - StartBrowsing(): Use BrowseLocalProtocols and
      BrowseRemoteProtocols.
    - StopBrowsing(): Use BrowseLocalProtocols and
      BrowseRemoteProtocols.

scheduler/dirsvc.h:
    - Add BrowseLocalProtocols and BrowseRemoteProtocols.
    - Remove BrowseProtocols.

scheduler/main.c:
    - main(): Use BrowseLocalProtocols and
      BrowseRemoteProtocols.
    - select_timeout(): Use BrowseLocalProtocols.

------------------------------------------------------------------------
r4669 | mike | 2005-09-17 20:00:35 -0400 (Sat, 17 Sep 2005) | 7 lines

PPD files can now contain strings up to 256k in length (STR
#1215)

cups/ppd.c:
    - ppd_read(): Dynamically allocate line array, capping at
      256k.

------------------------------------------------------------------------
r4668 | mike | 2005-09-17 19:47:26 -0400 (Sat, 17 Sep 2005) | 9 lines

The pstops filter now supports the IncludeFeature DSC comment
(STR #1212)

filter/pstops.c:
    - main(): Call include_feature() as needed to handle DSC
      comments.
    - include_feature(): Added.


------------------------------------------------------------------------
r4667 | mike | 2005-09-17 19:26:30 -0400 (Sat, 17 Sep 2005) | 2 lines

Quick syslog cleanup.

------------------------------------------------------------------------
r4666 | mike | 2005-09-17 19:19:39 -0400 (Sat, 17 Sep 2005) | 6 lines

The pstops filter now disables the setpagedevice procedure when
doing N-up printing (STR #1161)

filter/pstops.c:
    - do_setup(): Disable setpagedevice if NUp > 1.

------------------------------------------------------------------------
r4665 | mike | 2005-09-17 19:13:56 -0400 (Sat, 17 Sep 2005) | 4 lines

The serial backend now supports "stop=1", "stop=2",
"parity=space", and "parity=mark" options (STR #1155)


------------------------------------------------------------------------
r4664 | mike | 2005-09-17 18:56:56 -0400 (Sat, 17 Sep 2005) | 4 lines

"make install" no longer overwrites an existing PAM configuration
file (STR #1064)


------------------------------------------------------------------------
r4663 | mike | 2005-09-17 18:44:31 -0400 (Sat, 17 Sep 2005) | 7 lines

The scheduler now closes all files on startup when run in daemon
mode (STR #1009)

scheduler/main.c:
    - main(): Add loop to close all files (0 to current FD limit)
      instead of just closing FD's 0, 1, and 2.

------------------------------------------------------------------------
r4662 | mike | 2005-09-17 18:40:27 -0400 (Sat, 17 Sep 2005) | 11 lines

Added a new RGBW colorspace to the CUPS raster format
(STR #1071)

filter/imagetoraster.c:
    - main(): Add CUPS_CSPACE_RGBW support - works just like
      CUPS_CSPACE_RGBA for image printing.

filter/raster.h:
    - Add CUPS_CSPACE_RGBW colorspace value.
    - Update documentation/comments.

------------------------------------------------------------------------
r4661 | mike | 2005-09-17 12:24:07 -0400 (Sat, 17 Sep 2005) | 11 lines

The pdftops filter now sets the page size based on the media box
when not scaling the output (STR #912)

The pdftops filter now supports masked images (STR #281)

The pdftops filter produced large output when rendering PDF files
containing lot of repeated images (STR #327)

pdftops/PSOutputDev.cxx:
    - startPage(): Set paperWidth and paperHeight if no scaling...

------------------------------------------------------------------------
r4660 | mike | 2005-09-17 12:00:23 -0400 (Sat, 17 Sep 2005) | 32 lines

The pdftops filter now minimizes print processing of PDF files
when using the page-ranges option (STR #273)

pdftops/Gfx.cxx:
    - Gfx::Gfx(): Add initialization of renderThisPage member.

pdftops/Gfx.h:
    - Add renderThisPage member.

pdftops/OutputDev.h:
pdftops/SplashOutputDev.h:
    - startPage(): Change to return GBool.

pdftops/pdftops.cxx
    - main(): Pass page-ranges option to PSOutputDev.

pdftops/PSOutputDev.cxx
    - PSOutputDev(), init(): Add pageRangesA argument.
    - startPage(): Return gTrue or gFalse depending on whether
      the page will be printed.
    - checkRange(): Add.

pdftops/PSOutputDev.h:
    - startPage(): Change to return GBool.
    - PSOutputDev(), init(): Add pageRangesA argument.
    - Add pageRanges member.
    - Add checkRange() method.

pdftops/SplashOutputDev.cxx
    - startPage(): Return gTrue.


------------------------------------------------------------------------
r4659 | mike | 2005-09-17 10:52:15 -0400 (Sat, 17 Sep 2005) | 2 lines

Merge Xpdf 3.01 code.

------------------------------------------------------------------------
Download  ·  Home Page  ·  Listing

Comments

Submit Comment