diff options
Diffstat (limited to 'libiberty/tmpnam.c')
-rw-r--r-- | libiberty/tmpnam.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libiberty/tmpnam.c b/libiberty/tmpnam.c index 8eb77e28c0b..99615df7fe5 100644 --- a/libiberty/tmpnam.c +++ b/libiberty/tmpnam.c @@ -1,3 +1,17 @@ +/* + +@deftypefn Supplemental char* tmpnam (char *@var{s}) + +This function attempts to create a name for a temporary file, which +will be a valid file name yet not exist when @code{tmpnam} checks for +it. @var{s} must point to a buffer of at least @code{L_tmpnam} bytes, +or be NULL. Use of this function creates a security risk, and it must +not be used in new projects. Use @code{mkstemp} instead. + +@end deftypefn + +*/ + #include <stdio.h> #ifndef L_tmpnam |