1.1 --- a/lib/posix/io.py Tue Dec 06 22:39:23 2016 +0100
1.2 +++ b/lib/posix/io.py Tue Dec 06 22:58:16 2016 +0100
1.3 @@ -71,6 +71,12 @@
1.4 _check_string(s)
1.5 native._fwrite(self.__data__, s)
1.6
1.7 +# Standard streams.
1.8 +
1.9 +stdin = sysstream(0)
1.10 +stdout = sysstream(1, "w")
1.11 +stderr = sysstream(2, "w")
1.12 +
1.13 # Input/output functions.
1.14
1.15 def close(fd): pass
2.1 --- a/lib/sys.py Tue Dec 06 22:39:23 2016 +0100
2.2 +++ b/lib/sys.py Tue Dec 06 22:58:16 2016 +0100
2.3 @@ -20,15 +20,9 @@
2.4 """
2.5
2.6 from __builtins__.int import maxint, minint
2.7 -from posix.io import sysstream
2.8 +from posix.io import stdin, stdout, stderr
2.9 import native
2.10
2.11 -# Standard streams.
2.12 -
2.13 -stdin = sysstream(0)
2.14 -stdout = sysstream(1, "w")
2.15 -stderr = sysstream(2, "w")
2.16 -
2.17 # NOTE: Environment details to be implemented.
2.18
2.19 argv = native._get_argv()