diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-03-14 12:14:08 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-03-14 12:14:08 +0000 |
commit | 71675a3908d8bf650dce62d174d33391dbaafd2d (patch) | |
tree | 903a4a5fdb18b53aadf8aea0e2b69fce78c623f0 /newlib/libc/include/stdlib.h | |
parent | c7cf32ee27bdd157bd7308705a94e62382c5883c (diff) | |
download | cygnal-71675a3908d8bf650dce62d174d33391dbaafd2d.tar.gz cygnal-71675a3908d8bf650dce62d174d33391dbaafd2d.tar.bz2 cygnal-71675a3908d8bf650dce62d174d33391dbaafd2d.zip |
* libc/include/stdio.h (_mkstemp_r, _mktemp_r): Move declarations
to stdlib.h.
* libc/include/stdlib.h (mktemp, _mktemp_r): Warn when using.
* libc/stdio/mktemp.c: Explain the security risk when using
mktemp.
Diffstat (limited to 'newlib/libc/include/stdlib.h')
-rw-r--r-- | newlib/libc/include/stdlib.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index be4fa448b..a6a6e5083 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -98,7 +98,9 @@ size_t _EXFUN(_wcstombs_r,(struct _reent *, char *, const wchar_t *, size_t, _mb #ifndef __STRICT_ANSI__ #ifndef _REENT_ONLY int _EXFUN(mkstemp,(char *)); -char * _EXFUN(mktemp,(char *)); +int _EXFUN(_mkstemp_r, (struct _reent *, char *)); +char * _EXFUN(mktemp,(char *) _ATTRIBUTE ((warning ("the use of `mktemp' is dangerous; use `mkstemp' instead")))); +char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((warning ("the use of `mktemp' is dangerous; use `mkstemp' instead")))); #endif #endif _VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR))); |