[pypy-commit] pypy arm-backend-2: (arigo, bivab) mark lseek and ftruncate external definitions as macros
bivab
noreply at buildbot.pypy.org
Thu Feb 16 16:56:40 CET 2012
Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r52553:0fa0b47058b2
Date: 2012-02-16 16:52 +0100
http://bitbucket.org/pypy/pypy/changeset/0fa0b47058b2/
Log: (arigo, bivab) mark lseek and ftruncate external definitions as
macros
diff --git a/pypy/rpython/module/ll_os.py b/pypy/rpython/module/ll_os.py
--- a/pypy/rpython/module/ll_os.py
+++ b/pypy/rpython/module/ll_os.py
@@ -963,7 +963,7 @@
os_lseek = self.llexternal(funcname,
[rffi.INT, rffi.LONGLONG, rffi.INT],
- rffi.LONGLONG)
+ rffi.LONGLONG, macro=True)
def lseek_llimpl(fd, pos, how):
how = fix_seek_arg(how)
@@ -988,7 +988,7 @@
@registering_if(os, 'ftruncate')
def register_os_ftruncate(self):
os_ftruncate = self.llexternal('ftruncate',
- [rffi.INT, rffi.LONGLONG], rffi.INT)
+ [rffi.INT, rffi.LONGLONG], rffi.INT, macro=True)
def ftruncate_llimpl(fd, length):
res = rffi.cast(rffi.LONG,
More information about the pypy-commit
mailing list