Use Gnulib 'tempname' on MS-Windows
commit8cc8ad02bd5c410c61680735149ce7caf67f088d
authorEli Zaretskii <eliz@gnu.org>
Sat, 12 Aug 2017 08:29:37 +0000 (12 11:29 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 12 Aug 2017 08:29:37 +0000 (12 11:29 +0300)
treef99ec13f9647acb1bdc89a2691943fa1802b9d33
parent84288cf4211a4490c0155d3c0022617b92294f49
Use Gnulib 'tempname' on MS-Windows

* lib-src/ntlib.h (mkdir, open): Remove redefinitions.  They are
now in nt/inc/ms-w32.h.
* lib-src/ntlib.c (sys_mkdir, sys_open): New functions.
(mkostemp): Remove.

* src/w32.c (mkostemp): Remove.
(sys_mkdir): Accept a second (unused) argument.
* src/fileio.c (Fmake_directory_internal): Remove the WINDOWSNT
specific call to mkdir.  (Bug#28023)

* nt/inc/ms-w32.h (mkdir): Remove from "#ifdef emacs" and redefine
to accept 2 arguments.
(open): Remove from "#ifdef emacs".
* nt/mingw-cfg.site (ac_cv_func_mkostemp): Remove.
* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_mkostemp)
(OMIT_GNULIB_MODULE_tempname): Remove.
lib-src/ntlib.c
lib-src/ntlib.h
nt/gnulib-cfg.mk
nt/inc/ms-w32.h
nt/mingw-cfg.site
src/fileio.c
src/w32.c