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

Side by Side Diff: third_party/leveldatabase/env_chromium.cc

Issue 16206002: Add more support for FreeBSD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 3 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
« no previous file with comments | « skia/ext/vector_platform_device_skia.cc ('k') | tools/clang/scripts/plugin_flags.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The LevelDB Authors. All rights reserved. 1 // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. See the AUTHORS file for names of contributors. 3 // found in the LICENSE file. See the AUTHORS file for names of contributors.
4 4
5 #include <errno.h> 5 #include <errno.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 30 matching lines...) Expand all
41 #include <sys/resource.h> 41 #include <sys/resource.h>
42 #include <sys/time.h> 42 #include <sys/time.h>
43 #endif 43 #endif
44 44
45 using namespace leveldb; 45 using namespace leveldb;
46 46
47 namespace leveldb_env { 47 namespace leveldb_env {
48 48
49 namespace { 49 namespace {
50 50
51 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_ANDROID) || \ 51 #if (defined(OS_POSIX) && !defined(OS_LINUX)) || defined(OS_WIN)
jsbell 2013/09/19 21:20:32 I believe that OS_POSIX is basically defined as !O
52 defined(OS_OPENBSD)
53 // The following are glibc-specific 52 // The following are glibc-specific
54 53
55 size_t fread_wrapper(void *ptr, size_t size, size_t n, FILE *file) { 54 size_t fread_wrapper(void *ptr, size_t size, size_t n, FILE *file) {
56 return fread(ptr, size, n, file); 55 return fread(ptr, size, n, file);
57 } 56 }
58 57
59 size_t fwrite_wrapper(const void *ptr, size_t size, size_t n, FILE *file) { 58 size_t fwrite_wrapper(const void *ptr, size_t size, size_t n, FILE *file) {
60 return fwrite(ptr, size, n, file); 59 return fwrite(ptr, size, n, file);
61 } 60 }
62 61
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 Env* IDBEnv() { 961 Env* IDBEnv() {
963 return leveldb_env::idb_env.Pointer(); 962 return leveldb_env::idb_env.Pointer();
964 } 963 }
965 964
966 Env* Env::Default() { 965 Env* Env::Default() {
967 return leveldb_env::default_env.Pointer(); 966 return leveldb_env::default_env.Pointer();
968 } 967 }
969 968
970 } // namespace leveldb 969 } // namespace leveldb
971 970
OLDNEW
« no previous file with comments | « skia/ext/vector_platform_device_skia.cc ('k') | tools/clang/scripts/plugin_flags.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698