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