[pypy-svn] r49434 - pypy/dist/pypy/rpython/module

rxe at codespeak.net rxe at codespeak.net
Thu Dec 6 01:03:02 CET 2007


Author: rxe
Date: Thu Dec  6 01:03:00 2007
New Revision: 49434

Modified:
   pypy/dist/pypy/rpython/module/ll_os_stat.py
Log:
maks os.stat and friends work with genllvm again

Modified: pypy/dist/pypy/rpython/module/ll_os_stat.py
==============================================================================
--- pypy/dist/pypy/rpython/module/ll_os_stat.py	(original)
+++ pypy/dist/pypy/rpython/module/ll_os_stat.py	Thu Dec  6 01:03:00 2007
@@ -196,7 +196,11 @@
                       'lstat': '_stati64'}    # no lstat on Windows
         c_func_name = _functions[name]
     else:
-        c_func_name = name
+        # because we always use _FILE_OFFSET_BITS 64 - this helps things work that are not a c compiler 
+        _functions = {'stat':  'stat64',
+                      'fstat': 'fstat64',
+                      'lstat': 'lstat64'}
+        c_func_name = _functions[name]
     arg_is_path = (name != 'fstat')
     if arg_is_path:
         ARG1 = rffi.CCHARP



More information about the Pypy-commit mailing list