1.1 --- a/lib/native/io.py Fri Mar 31 23:26:47 2017 +0200
1.2 +++ b/lib/native/io.py Fri Mar 31 23:27:55 2017 +0200
1.3 @@ -8,7 +8,7 @@
1.4 non-core exceptions used by the native functions because they need to be
1.5 identified as being needed by the program.
1.6
1.7 -Copyright (C) 2011, 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2011, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -24,17 +24,26 @@
1.13 this program. If not, see <http://www.gnu.org/licenses/>.
1.14 """
1.15
1.16 +# NOTE: Example values used to provide type information.
1.17 +
1.18 def fclose(fp): IOError
1.19 def fflush(fp): IOError
1.20 def fopen(filename, mode): IOError
1.21 def fdopen(fd, mode): IOError
1.22 def close(fd): IOError
1.23 -def read(fd, n): IOError
1.24 -def write(fd, str): IOError
1.25 +
1.26 +def read(fd, n):
1.27 + IOError
1.28 + return ""
1.29 +
1.30 +def write(fd, str):
1.31 + IOError
1.32 + return 0
1.33
1.34 def fread(fp, n):
1.35 IOError
1.36 EOFError
1.37 + return ""
1.38
1.39 def fwrite(fp, str):
1.40 IOError