Fix hook for putc_unlocked() with glibc.

putc_unlocked() is a macro which expands to __overflow() in some cases.
This commit is contained in:
Simon Ruderich
2013-06-13 12:59:12 +02:00
parent d8be625da9
commit 7adfbfd2cf
5 changed files with 24 additions and 0 deletions

View File

@@ -52,5 +52,9 @@ int main(int argc, char **argv unused) {
write(42, "stderr ...\n", 11);
write(471, "more on stdout\n", 15);
/* Glibc uses __overflow() for this ... */
putc_unlocked('x', stderr);
putc_unlocked('\n', stdout);
return EXIT_SUCCESS;
}

View File

@@ -6,3 +6,4 @@
>STDERR>more on stderr
<STDERR<>STDERR>stderr ...
<STDERR<more on stdout
>STDERR>x<STDERR<