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

Unified Diff: native_client_sdk/src/libraries/gtest/nacl_gtest_dummy_sys.cc

Issue 433193002: [NaCl SDK] nacl_io: Remove unneeded glibc syscall entry points. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/gtest/nacl_gtest_dummy_sys.cc
diff --git a/native_client_sdk/src/libraries/gtest/nacl_gtest_dummy_sys.cc b/native_client_sdk/src/libraries/gtest/nacl_gtest_dummy_sys.cc
deleted file mode 100644
index 015ad094b5c4e9ea956c29eb23dd2fc3654c0400..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/libraries/gtest/nacl_gtest_dummy_sys.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2012 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.
-
-#if defined(__native_client__)
-#include <errno.h>
-#include <string.h>
-#include <sys/types.h>
-#endif
-
-extern "C" {
-
-#if defined(__native_client__)
-
-char* getcwd(char* buf, size_t size) __attribute__ ((weak));
-int unlink(const char* pathname) __attribute__ ((weak));
-int mkdir(const char* pathname, mode_t mode) __attribute__ ((weak));
-
-char* getcwd(char* buf, size_t size) {
- if (size < 2) {
- errno = ERANGE;
- return NULL;
- }
-
- return strncpy(buf, ".", size);
-}
-
-int unlink(const char* pathname) {
- errno = ENOSYS;
- return -1;
-}
-
-int mkdir(const char* pathname, mode_t mode) {
- errno = ENOSYS;
- return -1;
-}
-
-#endif
-
-} // extern "C"

Powered by Google App Engine
This is Rietveld 408576698