On Tue, 2007-11-13 at 21:38 -0500, Aaron Kulkis wrote:

> This functionality is actually used by some programmers --
> they will open() a new file in /tmp (which creates a pathname
> /tmp/somefilename), then they remove the file (while still
> having the open file handle).  This effectively hides the
> file from practically everything on the system -- it's a
> way of preventing a tmp file from accidentally being
> corrupted by ANY other processs (other than a super-user
> process writing out in kernal memory).

As does the tmpfile(3) call. Very handy feature for not leaving garbage
files around the place when a program exits in an unexpected fashion.

-- 
Roger Oberholtzer

OPQ Systems / Ramböll RST

Ramböll Sverige AB
Kapellgränd 7
P.O. Box 4205
SE-102 65 Stockholm, Sweden

Office: Int +46 8-615 60 20
Mobile: Int +46 70-815 1696

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to