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

Unified Diff: src/shared/platform/osx/strnlen_osx.c

Issue 1985153002: Delete shared/platform/osx/strnlen_osx.c. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/shared/platform/build.scons ('k') | src/shared/platform/platform.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/platform/osx/strnlen_osx.c
diff --git a/src/shared/platform/osx/strnlen_osx.c b/src/shared/platform/osx/strnlen_osx.c
deleted file mode 100644
index 159e4f432965fe168e9d2c0b4c07669e9812f207..0000000000000000000000000000000000000000
--- a/src/shared/platform/osx/strnlen_osx.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright 2008 The Native Client 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 <sys/stat.h>
-#include <sys/types.h>
-
-#include <fcntl.h>
-#include <string.h>
-#include <unistd.h>
-
-size_t strnlen(const char* string, size_t max);
-
-size_t strnlen(const char* string, size_t max) {
- const char* end = (const char*)memchr(string, '\0', max);
- return end ? (size_t)(end - string) : max;
-}
« no previous file with comments | « src/shared/platform/build.scons ('k') | src/shared/platform/platform.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698