1.1 --- a/lib/native.py Tue Dec 06 22:30:20 2016 +0100
1.2 +++ b/lib/native.py Tue Dec 06 22:39:23 2016 +0100
1.3 @@ -1,8 +1,12 @@
1.4 #!/usr/bin/env python
1.5
1.6 """
1.7 -Native library functions. None of these are actually defined here. Instead,
1.8 -native implementations are substituted when each program is built.
1.9 +Native library functions.
1.10 +
1.11 +None of these are actually defined here. Instead, native implementations are
1.12 +substituted when each program is built. It is, however, important to declare
1.13 +non-core exceptions used by the native functions because they need to be
1.14 +identified as being needed by the program.
1.15
1.16 Copyright (C) 2011, 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.17
1.18 @@ -100,4 +104,12 @@
1.19 def _read(fd, n): IOError
1.20 def _write(fd, str): pass
1.21
1.22 +def _fread(fd, n):
1.23 + IOError
1.24 + EOFError
1.25 +
1.26 +def _fwrite(fd, str):
1.27 + IOError
1.28 + EOFError
1.29 +
1.30 # vim: tabstop=4 expandtab shiftwidth=4