diff options
Diffstat (limited to 'man')
-rw-r--r-- | man/man3/opentemp.3 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/man/man3/opentemp.3 b/man/man3/opentemp.3 index 6177b44a..63af2da7 100644 --- a/man/man3/opentemp.3 +++ b/man/man3/opentemp.3 @@ -1,13 +1,13 @@ .TH OPENTEMP 3 .SH NAME -opentemp \- create a uniquely-named file +opentemp \- create and open a uniquely-named file .SH SYNOPSIS .B #include <u.h> .br .B #include <libc.h> .PP .B -int opentemp(char *template) +int opentemp(char *template, int mode) .SH DESCRIPTION .I Opentemp replaces @@ -28,8 +28,12 @@ are tried until the name of a file that does not yet exist .IR access (2)) is generated. .I Opentemp -then creates the file for reading and writing +then opens the file for the given +.I mode and returns the file descriptor. +Most calls should use a mode +of +.BR ORDWR|ORCLOSE . .PP If no such name can be generated, .I opentemp |