diff options
Diffstat (limited to 'man3/tmpnam.3')
| -rw-r--r-- | man3/tmpnam.3 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/man3/tmpnam.3 b/man3/tmpnam.3 index 8f8cd2fac4..9268cd8591 100644 --- a/man3/tmpnam.3 +++ b/man3/tmpnam.3 @@ -33,7 +33,7 @@ tmpnam, tmpnam_r \- create a name for a temporary file .fi .SH DESCRIPTION The -.B tmpnam() +.BR tmpnam () function returns a pointer to a string that is a valid filename, and such that a file with this name did not exist at some point in time, so that naive programmers may think it @@ -41,7 +41,7 @@ a suitable name for a temporary file. If the argument .I s is NULL this name is generated in an internal static buffer and may be overwritten by the next call to -.BR tmpnam() . +.BR tmpnam (). If .I s is not NULL, the name is copied to the character array (of length @@ -64,25 +64,25 @@ are defined in just like the TMP_MAX mentioned below.) .SH "RETURN VALUE" The -.B tmpnam() +.BR tmpnam () function returns a pointer to a unique temporary filename, or NULL if a unique name cannot be generated. .SH ERRORS No errors are defined. .SH NOTES The -.B tmpnam() +.BR tmpnam () function generates a different string each time it is called, up to TMP_MAX times. If it is called more than TMP_MAX times, the behaviour is implementation defined. .LP Portable applications that use threads cannot call -.B tmpnam() +.BR tmpnam () with NULL parameter if either _POSIX_THREADS or _POSIX_THREAD_SAFE_FUNCTIONS is defined. .LP A POSIX draft proposed to use a function -.B tmpnam_r() +.BR tmpnam_r () defined by .sp .nf |
