3 opentemp \- create a uniquely-named file
10 int opentemp(char *template)
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 creates the file for reading and writing
32 and returns the file descriptor.
34 If no such name can be generated,
40 Two simultaneous calls to
42 will never return the same name.
44 .B \*9/src/lib9/opentemp.c