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

[PATCH] PerlIO_tmpfile clean-up for VMS

From:
Craig A. Berry
Date:
September 13, 2003 22:24
Subject:
[PATCH] PerlIO_tmpfile clean-up for VMS
Message ID:
3F63FB6C.5040502@mac.com
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.





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About