Commit 111461aa authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Put stdin/stdout/stderr symbols in place.

To help with future binary compatibility.

Bug: 18553223
Change-Id: Ia8103b4f189c18528b11948ac9e520f61b9ccc0e
parent 432f6458
......@@ -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 *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment