diff options
author | Russ Cox <rsc@swtch.com> | 2008-07-10 11:10:10 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-07-10 11:10:10 -0400 |
commit | a58a827f2ae0d989102dc4d8c113b9282ef177b3 (patch) | |
tree | ce7b160c3393224e05a2100615c9fe48d20d2e82 /man | |
parent | c224dda84efaeb28ce66e59213f3cbfde06735ac (diff) | |
download | plan9port-a58a827f2ae0d989102dc4d8c113b9282ef177b3.tar.gz plan9port-a58a827f2ae0d989102dc4d8c113b9282ef177b3.tar.bz2 plan9port-a58a827f2ae0d989102dc4d8c113b9282ef177b3.zip |
lib9: add mode parameter to opentemp
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 |