[pypy-commit] pypy default: Missing headers
arigo
pypy.commits at gmail.com
Mon Jan 18 05:09:08 EST 2016
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r81832:72077eb61f4c
Date: 2016-01-18 10:42 +0100
http://bitbucket.org/pypy/pypy/changeset/72077eb61f4c/
Log: Missing headers
diff --git a/rpython/translator/sandbox/rsandbox.py b/rpython/translator/sandbox/rsandbox.py
--- a/rpython/translator/sandbox/rsandbox.py
+++ b/rpython/translator/sandbox/rsandbox.py
@@ -13,6 +13,7 @@
# Sandboxing code generator for external functions
#
+from rpython.rlib import rposix
from rpython.rtyper.lltypesystem import lltype, rffi
from rpython.rtyper.llannotation import lltype_to_annotation
from rpython.tool.sourcetools import func_with_new_name
@@ -25,12 +26,12 @@
# a version of os.read() and os.write() that are not mangled
# by the sandboxing mechanism
-ll_read_not_sandboxed = rffi.llexternal('read',
+ll_read_not_sandboxed = rposix.external('read',
[rffi.INT, rffi.CCHARP, rffi.SIZE_T],
rffi.SIZE_T,
sandboxsafe=True)
-ll_write_not_sandboxed = rffi.llexternal('write',
+ll_write_not_sandboxed = rposix.external('write',
[rffi.INT, rffi.CCHARP, rffi.SIZE_T],
rffi.SIZE_T,
sandboxsafe=True)
More information about the pypy-commit
mailing list