Re: What is an "anonymous temporary file?" (question about PerlFAQ5)
- From: Ilya Zakharevich <nospam-abuse@xxxxxxxxx>
- Date: Wed, 29 Jun 2005 07:59:06 +0000 (UTC)
[A complimentary Cc of this posting was sent to
A. Sinan Unur
<1usa@xxxxxxxxxxxxxxxxxxx>], who wrote in article <Xns96839E48598CBasu1cornelledu@xxxxxxxxx>:
> > Or, is this an actual file on an actual filesystem? (ie, something
> > you could test with -f if you knew the name?)
>
> It is on the actual file system
Correct...
> but it does not have a name (hence, 'anonymous').
Correct only in a few situations (OSes and filesystems). Background:
some filesystems allow opened files to be unlink()ed from their
directory entry; the only way to access the file is through
filedescriptors already opened to these files. If possible, Perl will
use this mechanism.
If not supported, some more complicated scheme (with obscurely named
files in suitable directories, possibly locked so that nobody else can
access it, and possibly some atexit() magic) is used.
Hope this helps,
Ilya
.
- References:
- What is an "anonymous temporary file?" (question about PerlFAQ5)
- From: usenet
- Re: What is an "anonymous temporary file?" (question about PerlFAQ5)
- From: A. Sinan Unur
- What is an "anonymous temporary file?" (question about PerlFAQ5)
- Prev by Date: Re: Compiling Perl modules on AIX using gcc instead of cc_r?
- Next by Date: Re: new to Perl - please verify my script?
- Previous by thread: Re: What is an "anonymous temporary file?" (question about PerlFAQ5)
- Next by thread: Re: What is an "anonymous temporary file?" (question about PerlFAQ5)
- Index(es):