[pypy-commit] pypy sandbox-2: three more sandbox_review
arigo
pypy.commits at gmail.com
Mon Aug 26 16:32:06 EDT 2019
Author: Armin Rigo <arigo at tunes.org>
Branch: sandbox-2
Changeset: r97283:4a871bfc18fb
Date: 2019-08-26 18:25 +0200
http://bitbucket.org/pypy/pypy/changeset/4a871bfc18fb/
Log: three more sandbox_review
diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -2214,6 +2214,7 @@
c_futimens = external('futimens', [rffi.INT, TIMESPEC2P], rffi.INT,
save_err=rffi.RFFI_SAVE_ERRNO)
+ @sandbox_review(reviewed=True)
def futimens(fd, atime, atime_ns, mtime, mtime_ns):
l_times = lltype.malloc(TIMESPEC2P.TO, 2, flavor='raw')
rffi.setintfield(l_times[0], 'c_tv_sec', atime)
@@ -2230,6 +2231,7 @@
[rffi.INT, rffi.CCHARP, TIMESPEC2P, rffi.INT], rffi.INT,
save_err=rffi.RFFI_SAVE_ERRNO)
+ @sandbox_review(reviewed=True)
def utimensat(pathname, atime, atime_ns, mtime, mtime_ns,
dir_fd=AT_FDCWD, follow_symlinks=True):
"""Wrapper around utimensat(2)
@@ -2643,6 +2645,7 @@
rffi.SSIZE_T, save_err=rffi.RFFI_SAVE_ERRNO,
compilation_info=sendfile_eci)
+ @sandbox_review(reviewed=True)
def sendfile(out_fd, in_fd, offset, count):
with lltype.scoped_alloc(_OFF_PTR_T.TO, 1) as p_offset:
p_offset[0] = rffi.cast(OFF_T, offset)
More information about the pypy-commit
mailing list