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

Side by Side Diff: mojo/edk/embedder/simple_platform_shared_buffer_posix.cc

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "mojo/edk/embedder/simple_platform_shared_buffer.h" 5 #include "mojo/edk/embedder/simple_platform_shared_buffer.h"
6 6
7 #include <stddef.h>
7 #include <stdint.h> 8 #include <stdint.h>
8 #include <stdio.h> // For |fileno()|. 9 #include <stdio.h> // For |fileno()|.
9 #include <sys/mman.h> // For |mmap()|/|munmap()|. 10 #include <sys/mman.h> // For |mmap()|/|munmap()|.
10 #include <sys/stat.h> 11 #include <sys/stat.h>
11 #include <sys/types.h> // For |off_t|. 12 #include <sys/types.h> // For |off_t|.
12 #include <unistd.h> 13 #include <unistd.h>
13 #include <limits> 14 #include <limits>
14 #include <utility> 15 #include <utility>
15 16
16 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 150
150 // SimplePlatformSharedBufferMapping ------------------------------------------- 151 // SimplePlatformSharedBufferMapping -------------------------------------------
151 152
152 void SimplePlatformSharedBufferMapping::Unmap() { 153 void SimplePlatformSharedBufferMapping::Unmap() {
153 int result = munmap(real_base_, real_length_); 154 int result = munmap(real_base_, real_length_);
154 PLOG_IF(ERROR, result != 0) << "munmap"; 155 PLOG_IF(ERROR, result != 0) << "munmap";
155 } 156 }
156 157
157 } // namespace edk 158 } // namespace edk
158 } // namespace mojo 159 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698