1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 05:20:16 +02:00
guile/module/system
Andy Wingo 0cf62c576d Allow mkstemp! to have optional "mode" argument
* m4/mkstemp.m4: Remove.
* lib/mkstemp.c: Remove.
* lib/mkostemp.c: New file.
* m4/mkostemp.m4: New file.
* lib/Makefile.am:
* m4/gnulib-cache.m4:
* m4/gnulib-comp.m4: Remove mkstemp module, replace with mkostemp.

* libguile/fports.h:
* libguile/fports.c (scm_i_mode_to_open_flags): Factor out helper to
  parse mode string to open flags.
  (scm_open_file_with_encoding): Use the new helper.
* libguile/filesys.c:
  (scm_i_mkstemp): Adapt to take optional second argument, being a mode
  string.  Use mkostemp.
  (scm_mkstemp): Backwards compatible shim that calls scm_i_mkstemp.

* doc/ref/posix.texi:
* NEWS: Update.

* module/system/base/compile.scm (call-with-output-file/atomic): Pass
  "wb" as mode, to cause O_BINARY to be added on MinGW.
2016-07-16 15:37:55 +02:00
..
base Allow mkstemp! to have optional "mode" argument 2016-07-16 15:37:55 +02:00
repl Bump user-visible copyright years to 2016. 2016-01-06 16:44:39 -05:00
vm Fix trap handlers to handle applicable structs. 2014-01-09 03:12:05 +00:00
foreign.scm Improve correctness and consistency of 'eval-when' usage. 2014-01-23 10:41:22 -05:00
xref.scm system xref maintains source mapping for nested procedures too 2010-09-24 13:24:48 +02:00