mkstemps

Eric Blake ebb9@byu.net
Fri Jul 3 12:31:00 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Corinna Vinschen on 6/28/2009 4:32 AM:
>> I'm not sure whether the changes are
>> trivial enough for me to do for cygwin (where I don't have copyright on
>> file), so I'm floating this out there to see if anyone else is willing to
>> write the patch.
> 
> Well, if your patch is accepted in newlib, it should be not much of a
> problem to tweak it slightly for inclusion into Cygwin, even if you're
> doing the tweak...

With that vote of confidence, here's the patch (the changes to mktemp.cc,
modulo a changed variable name, mirror newlib):

2009-07-03  Eric Blake  <ebb9@byu.net>

	Add fpurge, mkstemps.
	* cygwin.din (fpurge, mkstemps): New exports.
	* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
	* mktemp.cc (_gettemp): Add parameter.
	(mkstemps): New function.
	(mkstemp, mkdtemp, mktemp): Adjust clients.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpN+j4ACgkQ84KuGfSFAYAyDQCeKPVVyrgagHMp2K567i4+w6MG
tDcAoNZcS42SAHofdZDt/23Q6XyrmTnb
=0Uss
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygwin.patch16
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20090703/e8bdc93e/attachment.ksh>


More information about the Cygwin-patches mailing list