3 opentemp \- create and open a uniquely-named file
10 int opentemp(char *template, int mode)
15 by a unique file name, and returns the
16 address of the template.
17 The template should look like a file name with eleven trailing
21 are replaced by a letter followed by the current process id.
26 are tried until the name of a file that does not yet exist
31 then opens the file for the given
33 and returns the file descriptor.
34 Most calls should use a mode
38 If no such name can be generated,
44 Two simultaneous calls to
46 will never return the same name.
48 .B \*9/src/lib9/opentemp.c