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

Side by Side Diff: src/base/platform/platform-linux.cc

Issue 716123003: Fix include mistakes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | src/base/platform/platform-posix.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project 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 // Platform-specific code for Linux goes here. For the POSIX-compatible 5 // Platform-specific code for Linux goes here. For the POSIX-compatible
6 // parts, the implementation is in platform-posix.cc. 6 // parts, the implementation is in platform-posix.cc.
7 7
8 #include <pthread.h> 8 #include <pthread.h>
9 #include <semaphore.h> 9 #include <semaphore.h>
10 #include <signal.h> 10 #include <signal.h>
11 #include <stdio.h>
11 #include <stdlib.h> 12 #include <stdlib.h>
12 #include <sys/resource.h> 13 #include <sys/resource.h>
13 #include <sys/time.h> 14 #include <sys/time.h>
14 #include <sys/types.h>
15 15
16 // Ubuntu Dapper requires memory pages to be marked as 16 // Ubuntu Dapper requires memory pages to be marked as
17 // executable. Otherwise, OS raises an exception when executing code 17 // executable. Otherwise, OS raises an exception when executing code
18 // in that page. 18 // in that page.
19 #include <errno.h> 19 #include <errno.h>
20 #include <fcntl.h> // open 20 #include <fcntl.h> // open
21 #include <stdarg.h> 21 #include <stdarg.h>
22 #include <strings.h> // index 22 #include <strings.h> // index
23 #include <sys/mman.h> // mmap & munmap 23 #include <sys/mman.h> // mmap & munmap
24 #include <sys/stat.h> // open 24 #include <sys/stat.h> // open
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 #endif 437 #endif
438 return munmap(base, size) == 0; 438 return munmap(base, size) == 0;
439 } 439 }
440 440
441 441
442 bool VirtualMemory::HasLazyCommits() { 442 bool VirtualMemory::HasLazyCommits() {
443 return true; 443 return true;
444 } 444 }
445 445
446 } } // namespace v8::base 446 } } // namespace v8::base
OLDNEW
« no previous file with comments | « no previous file | src/base/platform/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698