diff options
Diffstat (limited to 'man3/mkstemp.3')
| -rw-r--r-- | man3/mkstemp.3 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/man3/mkstemp.3 b/man3/mkstemp.3 index 862a412fab..43d0d7c8b9 100644 --- a/man3/mkstemp.3 +++ b/man3/mkstemp.3 @@ -38,7 +38,9 @@ mkstemp \- create a unique temporary file .BI "int mkstemp(char *" template ); .fi .SH DESCRIPTION -The \fBmkstemp\fP() function generates a unique temporary filename +The +.BR mkstemp () +function generates a unique temporary filename from \fItemplate\fP. The last six characters of \fItemplate\fP must be XXXXXX and these are replaced with a string that makes the @@ -55,7 +57,9 @@ flag, guaranteeing that when .BR mkstemp () returns successfully we are the only user. .SH "RETURN VALUE" -On success, the \fBmkstemp\fP() function returns the file descriptor +On success, the +.BR mkstemp () +function returns the file descriptor of the temporary file. On error, \-1 is returned, and .I errno |
