Blob
1 .TH MKTEMP 32 .SH NAME3 mktemp \- make a unique file name4 .SH SYNOPSIS5 .B #include <u.h>6 .br7 .B #include <libc.h>8 .PP9 .nf10 .B11 char* mktemp(char *template)12 .fi13 .SH DESCRIPTION14 .I Mktemp15 replaces16 .I template17 by a unique file name, and returns the18 address of the template.19 The template should look like a file name with eleven trailing20 .LR X s.21 The22 .LR X s23 are replaced by a letter followed by the current process id.24 Letters from25 .L a26 to27 .L z28 are tried until a name that can be accessed29 (see30 .IR access (3))31 is generated.32 If no such name can be generated,33 .I mktemp34 returns35 \f5"/"\f1 .36 .SH SOURCE37 .B /usr/local/plan9/src/libc/port/mktemp.c38 .SH "SEE ALSO"39 .IR getpid (3),40 .IR access (3)