summaryrefslogtreecommitdiffstats
path: root/libc/stdio
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-09-21 18:25:22 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-09-21 18:25:22 -0700
commite2784760e51ec0de62bbee61d27a85147460ece0 (patch)
tree0d1541dc5f16424d5a097929e0aaaa8c762a1056 /libc/stdio
parenta894902293392cdae3a614ae3ff065ca3a7b9f75 (diff)
downloaduClibc-alpine-e2784760e51ec0de62bbee61d27a85147460ece0.tar.bz2
uClibc-alpine-e2784760e51ec0de62bbee61d27a85147460ece0.tar.xz
not-cancel: use *_not_cancel variants directly
add a no threads version of not-cancel.h to fallback on Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/stdio')
-rw-r--r--libc/stdio/tmpfile.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libc/stdio/tmpfile.c b/libc/stdio/tmpfile.c
index f11595a34..57f252715 100644
--- a/libc/stdio/tmpfile.c
+++ b/libc/stdio/tmpfile.c
@@ -20,10 +20,7 @@
#include <stdio.h>
#include <unistd.h>
#include "../misc/internals/tempname.h"
-#ifdef __UCLIBC_HAS_THREADS_NATIVE__
-#include <errno.h>
#include <not-cancel.h>
-#endif
/* This returns a new stream opened on a temporary file (generated
@@ -47,11 +44,7 @@ FILE * tmpfile (void)
(void) remove (buf);
if ((f = fdopen (fd, "w+b")) == NULL)
-#ifdef __UCLIBC_HAS_THREADS_NATIVE__
close_not_cancel (fd);
-#else
- close (fd);
-#endif
return f;
}