[pypy-svn] r43824 - pypy/branch/kill-ctypes/pypy/rpython/module
fijal at codespeak.net
fijal at codespeak.net
Mon May 28 22:28:04 CEST 2007
Author: fijal
Date: Mon May 28 22:28:03 2007
New Revision: 43824
Modified:
pypy/branch/kill-ctypes/pypy/rpython/module/ll_termios.py
Log:
Strange hack to be able to translate this stuff
Modified: pypy/branch/kill-ctypes/pypy/rpython/module/ll_termios.py
==============================================================================
--- pypy/branch/kill-ctypes/pypy/rpython/module/ll_termios.py (original)
+++ pypy/branch/kill-ctypes/pypy/rpython/module/ll_termios.py Mon May 28 22:28:03 2007
@@ -20,6 +20,10 @@
includes = ['termios.h', 'unistd.h']
+# XXX all functions here raise OSError, because they cannot
+# raise termios.error (lack of translation possibilities). hence
+# I don't know how to solve this, the tests will probably don't work
+
TERMIOSP = rffi.CStruct('termios', ('c_iflag', TCFLAG_T), ('c_oflag', TCFLAG_T),
('c_cflag', TCFLAG_T), ('c_lflag', TCFLAG_T),
('c_cc', lltype.FixedSizeArray(CC_T, NCCS)))
@@ -49,3 +53,4 @@
register_external(termios.tcgetattr, [int], (int, int, int, int, int, int, [str]),
llimpl=tcgetattr_llimpl, export_name='termios.tcgetattr')
+#def tcsetattr_llimpl(fd
More information about the Pypy-commit
mailing list