Showing with 20 additions and 2 deletions.
  1. +20 −2 std/stdio.d
22 changes: 20 additions & 2 deletions std/stdio.d
Original file line number Diff line number Diff line change
Expand Up @@ -4012,6 +4012,10 @@ extern(C) void std_stdio_static_this()
__gshared
{
/** The standard input stream.
Bugs:
Due to $(WEB https://issues.dlang.org/show_bug.cgi?id=15768, bug 15768),
it is thread un-safe to reassign `stdin` to a different `File` instance
than the default.
*/
File stdin;
///
Expand All @@ -4030,8 +4034,22 @@ __gshared
}
}

File stdout; /// The standard output stream.
File stderr; /// The standard error stream.
/**
The standard output stream.
Bugs:
Due to $(WEB https://issues.dlang.org/show_bug.cgi?id=15768, bug 15768),
it is thread un-safe to reassign `stdout` to a different `File` instance
than the default.
*/
File stdout;
/**
The standard error stream.
Bugs:
Due to $(WEB https://issues.dlang.org/show_bug.cgi?id=15768, bug 15768),
it is thread un-safe to reassign `stderr` to a different `File` instance
than the default.
*/
File stderr;
}

unittest
Expand Down