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

Side by Side Diff: sandbox/linux/services/libc_urandom_override.cc

Issue 10833017: Fix gcc 4.7 building problems - cont 2. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Modified per Adam's comments Created 8 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 unified diff | Download patch
« no previous file with comments | « net/dns/dns_config_service.cc ('k') | sandbox/linux/suid/client/setuid_sandbox_client.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium 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. 3 // found in the LICENSE file.
4 4
5 #include "sandbox/linux/services/libc_urandom_override.h" 5 #include "sandbox/linux/services/libc_urandom_override.h"
6 6
7 #include <dlfcn.h> 7 #include <dlfcn.h>
8 #include <pthread.h> 8 #include <pthread.h>
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <sys/stat.h> 10 #include <sys/stat.h>
11 #include <unistd.h>
11 12
12 #include "base/eintr_wrapper.h" 13 #include "base/eintr_wrapper.h"
13 #include "base/logging.h" 14 #include "base/logging.h"
14 #include "base/rand_util.h" 15 #include "base/rand_util.h"
15 16
16 // Note: this file is used by the zygote and nacl_helper. 17 // Note: this file is used by the zygote and nacl_helper.
17 18
18 namespace sandbox { 19 namespace sandbox {
19 20
20 // With SELinux we can carve out a precise sandbox, so we don't have to play 21 // With SELinux we can carve out a precise sandbox, so we don't have to play
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 CHECK(g_libc_xstat64); 158 CHECK(g_libc_xstat64);
158 return g_libc_xstat64(version, path, buf); 159 return g_libc_xstat64(version, path, buf);
159 } 160 }
160 } 161 }
161 162
162 #endif // !ADDRESS_SANITIZER 163 #endif // !ADDRESS_SANITIZER
163 164
164 #endif // !CHROMIUM_SELINUX 165 #endif // !CHROMIUM_SELINUX
165 166
166 } // namespace content 167 } // namespace content
OLDNEW
« no previous file with comments | « net/dns/dns_config_service.cc ('k') | sandbox/linux/suid/client/setuid_sandbox_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698