source: trunk/binutils/libiberty/tmpnam.c@ 2494

Last change on this file since 2494 was 610, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r609,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.0 KB
Line 
1/*
2
3@deftypefn Supplemental char* tmpnam (char *@var{s})
4
5This function attempts to create a name for a temporary file, which
6will be a valid file name yet not exist when @code{tmpnam} checks for
7it. @var{s} must point to a buffer of at least @code{L_tmpnam} bytes,
8or be @code{NULL}. Use of this function creates a security risk, and it must
9not be used in new projects. Use @code{mkstemp} instead.
10
11@end deftypefn
12
13*/
14
15#include <stdio.h>
16
17#ifndef L_tmpnam
18#define L_tmpnam 100
19#endif
20#ifndef P_tmpdir