[comp.unix.questions] How to name tmpfiles?

dag@kvatro.no (Dag H. Wanvik) (05/24/91)

I need to create temporary files which will automatically be deleted
when  the  process  using  it  terminates.

However, the 'tmpfile' call creates a temporary file using a name generated by
tmpnam(3S). 

Is there a way I can give my own names to such files (SunOS, SCO3.2)?

Please reply to me, as I have a feeling this is obvious, I just can't
find what I need...

Thanks,

Dag

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dag H. Wanvik  ,   Senior Systems Engineer
Mailing address:   KVATRO AS, Pirsenteret, N-7005 Trondheim, NORWAY
Telephone      :   +47 7 520090
Fax	       :   +47 7 520140
Internet e-mail:   wanvik@kvatro.no [my VAX/VMS address]
          or   :   dag@kvatro.no    [my Unix address]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~