develooper Front page | perl.perl5.porters | Postings from September 2003

[PATCH] PerlIO_tmpfile clean-up for VMS

Craig A. Berry
September 13, 2003 22:24
[PATCH] PerlIO_tmpfile clean-up for VMS
Message ID:
PerlIO_tmpfile leaves a lot of temporary files lying around on VMS 
because it does an (unsuccessful) unlink() immediately after opening the 
temporary file.  Our unlink is based on remove(), and remove()ing an 
open file is implementation-defined behavior according to C99,and for 
whatever reason it doesn't work on this implementation.

The attached patch makes VMS revert to using PerlSIO_tmpfile, which 
works fine because it sets the delete-on-close flag for the file. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About