Commit 122d247a authored by sbc's avatar sbc Committed by Commit bot

nacl_io: Add glibc IRT redirect for rename syscall

This means we can remove the direct intercept, which
is currently causing lua5.2 tests to fail on the
naclports tree.

CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_nacl_sdk;tryserver.chromium.mac:mac_nacl_sdk;tryserver.chromium.win:win_nacl_sdk

Review URL: https://codereview.chromium.org/1127103006

Cr-Commit-Position: refs/heads/master@{#330279}
parent 588427cc
......@@ -175,6 +175,7 @@ EXTERN_C_BEGIN
OP(fdatasync); \
OP(lstat); \
OP(link); \
OP(rename); \
OP(readlink); \
OP(utimes);
......@@ -348,6 +349,10 @@ int WRAP(link)(const char* pathname, const char* newpath) {
ERRNO_RTN(ki_link(pathname, newpath));
}
int WRAP(rename)(const char* pathname, const char* newpath) {
ERRNO_RTN(ki_rename(pathname, newpath));
}
int WRAP(readlink)(const char* pathname,
char* buf,
size_t count,
......
......@@ -81,7 +81,6 @@
"syscalls/pipe.c",
"syscalls/poll.c",
"syscalls/realpath.c",
"syscalls/rename.c",
"syscalls/select.c",
"syscalls/sigaction.c",
"syscalls/signal.c",
......
/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
#include "nacl_io/kernel_intercept.h"
#include "nacl_io/kernel_wrap.h"
int rename(const char* path, const char* newpath) {
return ki_rename(path, newpath);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment