Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/syscalls/remove.c

Issue 1136953014: nacl_io: Remove the direct syscall intercept for 'remove' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
4
5 #include "nacl_io/kernel_intercept.h"
6 #include "nacl_io/kernel_wrap.h"
7
8 #if defined(__GLIBC__) && defined(__native_client__)
9 // Glibc's remove(3) and unlink(2) entry points are not yet hooked up
10 // to the lower level IRT interfaces. Therefore the only way to intercept
11 // these calls is to override them here.
12 // TODO(sbc): remove this once glibc plumbing is in place for remove/unlink
13
14 int remove(const char* path) {
15 return ki_remove(path);
16 }
17 #endif
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/library.dsc ('k') | native_client_sdk/src/tests/nacl_io_test/kernel_wrap_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698