How to name tmpfiles?

Dag H. Wanvik dag at kvatro.no
Fri May 24 06:02:07 AEST 1991


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 at kvatro.no [my VAX/VMS address]
          or   :   dag at kvatro.no    [my Unix address]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the Comp.unix.programmer mailing list