aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/micro-bunzip
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-02-01 21:43:47 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-02-01 21:48:33 +0100
commite029e033d52a850c135e286dea907a2b8468637b (patch)
treef5491de1b3cde237ab039d6b243547f1312620d4 /test/monniaux/micro-bunzip
parent1dffd83e6b621c6ad8d820431339c5dd58e651d1 (diff)
downloadcompcert-kvx-e029e033d52a850c135e286dea907a2b8468637b.tar.gz
compcert-kvx-e029e033d52a850c135e286dea907a2b8468637b.zip
ugly hack to access _impure_thread_data (stdin, stdout, stderr...)
it works!
Diffstat (limited to 'test/monniaux/micro-bunzip')
-rw-r--r--test/monniaux/micro-bunzip/micro-bunzip.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/monniaux/micro-bunzip/micro-bunzip.c b/test/monniaux/micro-bunzip/micro-bunzip.c
index 532fc7b5..7197ede5 100644
--- a/test/monniaux/micro-bunzip/micro-bunzip.c
+++ b/test/monniaux/micro-bunzip/micro-bunzip.c
@@ -520,8 +520,6 @@ extern char *uncompressStream(int src_fd, int dst_fd)
int main(int argc, char *argv[])
{
char *c=uncompressStream(0,1);
- extern FILE *fdopen(int fd, const char *mode);
- FILE *err = fdopen(2, "w");
- fprintf(err, "%s\ncycles=%lu\n", c ? c : "Completed OK", get_total_clock());
+ fprintf(stderr, "%s\ncycles=%lu\n", c ? c : "Completed OK", get_total_clock());
return 0;
}