This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(perl #127663) add our own mkstemp() implementation
authorTony Cook <tony@develop-help.com>
Thu, 4 Aug 2016 04:30:13 +0000 (14:30 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 11 Sep 2017 00:59:42 +0000 (10:59 +1000)
commite48855bdd2fc57fc51156f5e4b8dee6b544456c8
tree79e0c472f0a2485d7ee7638c30fb5946ce8fae46
parentf26b33bdaa1e41fbaf65c649a3208f081fa7571b
(perl #127663) add our own mkstemp() implementation

Needed to generate temp files for safer in-place editing.

Not based on any particular implementation, the BSD implementations
tend to be wrappers around a megafunction that also does a few variations
of mkstemp() and mkdtemp(), which we don't need (yet.)

This might also be useful as a replacement for broken mkstemp()
implementations that use a mode of 0666 when creating the file, though
we'd need to add Configure probing for that.
embed.fnc
proto.h
util.c
util.h