[comp.sys.encore] tmpnam

bph@buengc.BU.EDU (Blair P. Houghton) (05/05/89)

Some unix-based systems have functions in their C libraries, or stdio.h,
that provide access to temporary files within a program.  Unfortunately,
Umax 4.2 doesn't seem to.

As I am porting some programs I wrote on another system to this machine,
I would prefer to keep that code as close to the original as possible,
and maybe only add a #include to give the now-undefined functions an
identity.

Before I go wading into the turbid waters of unique-filename-generation
on my own, I'd like to know if anyone's done this on an Encore before.

				--Blair
				  "It's not a particularly tough
				   problem, just a bother."

guzzi@multimax (Mark D. Guzzi) (05/05/89)

The routine is mktemp(3).  This is the standard 4.2 function for
temporary files.
-- 
				       -- Mark Guzzi
					  Encore Computer Corporation
					  guzzi@encore.com
					     (or guzzi@multimax.encore.com)