summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/tmpnam.c
diff options
context:
space:
mode:
authorMatthew Green <mrg@redhat.com>2002-02-03 09:24:18 +0000
committerMatthew Green <mrg@redhat.com>2002-02-03 09:24:18 +0000
commit8195aff714f2ea5d680a5129a1d54af388e90355 (patch)
tree683ff47f4802385e669491dda42bf8050772dbdf /newlib/libc/stdio/tmpnam.c
parentad67ada2fc7cdb361643d506701e274a67d796f9 (diff)
downloadcygnal-8195aff714f2ea5d680a5129a1d54af388e90355.tar.gz
cygnal-8195aff714f2ea5d680a5129a1d54af388e90355.tar.bz2
cygnal-8195aff714f2ea5d680a5129a1d54af388e90355.zip
* implement a new `struct _reent' that is significantly smaller. use this
if _REENT_SMALL is defined in config.h. define this for xstormy16.
Diffstat (limited to 'newlib/libc/stdio/tmpnam.c')
-rw-r--r--newlib/libc/stdio/tmpnam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdio/tmpnam.c b/newlib/libc/stdio/tmpnam.c
index 28b394f10..ec346c878 100644
--- a/newlib/libc/stdio/tmpnam.c
+++ b/newlib/libc/stdio/tmpnam.c
@@ -146,7 +146,8 @@ _DEFUN (_tmpnam_r, (p, s),
if (s == NULL)
{
/* ANSI states we must use an internal static buffer if s is NULL */
- result = p->_emergency;
+ _REENT_CHECK_EMERGENCY(p);
+ result = _REENT_EMERGENCY(p);
}
else
{