diff options
author | Elliott Hughes <enh@google.com> | 2014-12-01 21:27:59 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-12-01 21:27:59 -0800 |
commit | 111461aaaec2b7d9ffa5f3baabb1bd019d2e0c1d (patch) | |
tree | 6a63b11629ce030173ae7d229c7eb0fa8632d57b /libc/stdio/findfp.c | |
parent | 432f645887466ed7099addb20fa8915c8a29fcab (diff) | |
download | bionic-111461aaaec2b7d9ffa5f3baabb1bd019d2e0c1d.zip bionic-111461aaaec2b7d9ffa5f3baabb1bd019d2e0c1d.tar.gz bionic-111461aaaec2b7d9ffa5f3baabb1bd019d2e0c1d.tar.bz2 |
Put stdin/stdout/stderr symbols in place.
To help with future binary compatibility.
Bug: 18553223
Change-Id: Ia8103b4f189c18528b11948ac9e520f61b9ccc0e
Diffstat (limited to 'libc/stdio/findfp.c')
-rw-r--r-- | libc/stdio/findfp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/stdio/findfp.c b/libc/stdio/findfp.c index 0c2ee7c..cfbb66b 100644 --- a/libc/stdio/findfp.c +++ b/libc/stdio/findfp.c @@ -44,6 +44,10 @@ #define ALIGNBYTES (sizeof(uintptr_t) - 1) #define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES) +#undef stdin +#undef stdout +#undef stderr + int __sdidinit; #define NDYNAMIC 10 /* add ten more whenever necessary */ @@ -65,6 +69,9 @@ FILE __sF[3] = { std(__SWR, STDOUT_FILENO), /* stdout */ std(__SWR|__SNBF, STDERR_FILENO) /* stderr */ }; +FILE* stdin = &__sF[0]; +FILE* stdout = &__sF[1]; +FILE* stderr = &__sF[2]; struct glue __sglue = { &uglue, 3, __sF }; static struct glue * |