From a58a827f2ae0d989102dc4d8c113b9282ef177b3 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 10 Jul 2008 11:10:10 -0400 Subject: lib9: add mode parameter to opentemp --- man/man3/opentemp.3 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'man/man3') 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 .br .B #include .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 -- cgit v1.2.3