summaryrefslogtreecommitdiff
path: root/psi/ziodevsc.c
Commit message (Collapse)AuthorAgeFilesLines
* Update postal address in file headersChris Liddell2023-04-041-3/+3
|
* Update copyright to 2021Chris Liddell2021-03-151-1/+1
|
* Improve test for error in s_stdout_write_process().Julian Smith2020-06-181-1/+1
| | | | | Detect error case where outwrite() incorrectly returns > count, so we can avoid incrementing pr->ptr beyond bounds of array.
* Extend gsapi interface with _with_handle variants for callbacks.Robin Watts2020-05-211-1/+1
| | | | | | This allows us to specify specific caller_handles for each callback type rather than using a default one specified at gs instance creation time. The old functions still work.
* Update copyright to 2020Chris Liddell2020-04-101-1/+1
|
* Add use of new file access permissions to PS interpChris Liddell2019-05-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (this is a squash of several commits from filesec branch) Use errno to indicate invalidfileaccess Integrate fontconfig with file access controls fontconfig API has a call to retrieve all the directories about which fontconfig knows, so we can get those, and add them to the paths from which we're permitted to read. Add (most of) the Postscript "managed" paths.... ...to the access controls. GenericResourceDir, ICCProfilesDir (reading) and temporary file directories for read/write/control. Add paths/files from C to the file access controls The -I paths, environment variables and build time paths. The command line specified output file, permit writing. Lastly, the command line specified input file is added to the readable list, interpreted, and then removed from the list. Add the FONTPATH path list to permit read access control list. I opted to do this in Postscript because the list is (normally) a colon separated list of paths, which we split into an array of paths (in Postscript) - it seems sensible to do this only once, both for storage and permissions. Add a non-standard string 'reverse search" operator The search operator searches for the first occurrence of a character code in a string (i.e. searches forwards from the start of the string), 'rsearch' finds the last instance of a character code (i.e. search backwards from the end of the string). Fix gp_open_scratch_file_rm for access permissions i.e. the same as gp_open_scratch_file Handle clist file 'rewind' failures 'Rewinding' clist files may involved closing and recreating the temporary files, which conceivably can fail, but the clist procs rewind method was a void function, so couldn't return an error. It now can, and does return an error, and we handle the error. Add file permissions support for piped output. Paths from Fontmap to PermitReading list cidfmap paths, add to PermitReading list Add command line options for path access control addition --permit-file-read --permit-file-write --permit-file-control --permit-file-all They all take a separated list of paths (the usual platform specific ':' or ';' separator), and to the respective access control lists - the final 'all' option adds the paths to all the control lists. Add file access control to the 'gp_stat' method. This is complicated by the need to add the memory allocator context to the gp_stat parameters. To facilitate this, I've added a gs_memory_t pointer to the gx_io_device structure, which is set during the io device initialisation at startup. mkromfs: Add dummy gp_stat_impl for Windows - saves quite a bit of pointless build upheaval Add file access protection to file enumeration. The low level implementation of Postscript's filenameforall (*_enumerate_files) needs to also honour file access protection. This is has been complicated by requiring a gs_memory_t to be available where it wasn't previously (in order to access the gs_lib_ctx and the file permissions lists therein). Temp
* Update source/header file copyright notice to 2019Chris Liddell2019-01-161-1/+1
|
* Commit of gpdl-shared-device branch.Chris Liddell2018-12-071-8/+9
| | | | | | | | | This commit is a squashed version of the gpdl-shared-device branch. Essentially this is a first version of the new language switching mechanism. This does not build as part as "all", but rather as "experimental" or "gpdl".
* Remove STDIO_IMPLEMENTATION logic from Makefiles.Robin Watts2018-11-221-4/+0
| | | | | | This has fallen out of usage to the degree where the non-C callbacks based version hasn't even built for years (since at least 2006, by my git archaeology). Just strip it out completely.
* Update copyright notice with new head office address.Ken Sharp2018-01-301-3/+3
| | | | | | | | | Also update copyright dates. Remove gs_cmdl.ps as we no longer use it, and remove its entry from psfiles.htm. Remove xfonts.htm as this feature (xfont support) is long, long gone.
* Bug 698842: cleanup the io_dev table and contentsChris Liddell2018-01-151-5/+13
| | | | | This is slightly complicated as (in the Ghostscript case) the table can be freed explicitly, or by the garbager.
* Bug 697110: Ensure stream 'file_limit' is correctChris Liddell2016-09-121-3/+3
| | | | | | | | | | Follow-on from commit 4b101952d81a5899972f81f7b18ef3becd5bd45e There are several places that set, and check the value of file_limit for streams. Ensure they all use the requisite value whether the gs_offset_t is 64 bit (normal) or 32 bit (abnormal). To make it easier, and more consistent, pull the logic out into a macro.
* Commit of build_consolidation branchChris Liddell2015-07-201-0/+321
Squashed into one commit (see branch for details of the evolution of the branch). This brings gpcl6 and gxps into the Ghostscript build system, and a shared set of graphics library object files for all the interpreters. Also, brings the same configuration options to the pcl and xps products as we have for Ghostscript.