This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: tmpnam and mkstemp
- To: habib <hkrit at openave dot com>
- Subject: Re: tmpnam and mkstemp
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Tue, 23 Jan 2001 12:50:57 -0500
- Cc: "gnu.org" <gcc at gcc dot gnu dot org>
- References: <3A6DBD2F.3A797F62@openave.com>
On Tue, Jan 23, 2001 at 09:19:43AM -0800, habib wrote:
> I get this surprising diagnostic:
>
> the use of `tmpnam' is dangerous, better use `mkstemp'
>
> when compiling code that uses the ANSI-C function tmpnam()
> with gcc 2.95.2 on redhat 7. I did not use to get this diagnostic
> with egcs 1.1.2.
>
> Is anybody else experiencing this? What might be causing it?
It's the GNU C library, glibc, not the compiler.
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.