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

Side by Side Diff: mojo/edk/system/raw_channel_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 5 years 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 | « mojo/edk/system/raw_channel.cc ('k') | mojo/edk/system/raw_channel_unittest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/system/raw_channel.h" 5 #include "mojo/edk/system/raw_channel.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <stddef.h>
8 #include <sys/socket.h> 9 #include <sys/socket.h>
9 #include <sys/stat.h> 10 #include <sys/stat.h>
10 #include <sys/types.h> 11 #include <sys/types.h>
11 #include <sys/uio.h> 12 #include <sys/uio.h>
12 #include <unistd.h> 13 #include <unistd.h>
13 #include <algorithm> 14 #include <algorithm>
14 #include <deque> 15 #include <deque>
15 #include <utility> 16 #include <utility>
16 17
17 #include "base/bind.h" 18 #include "base/bind.h"
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 socklen_t peek_off_size = sizeof(id1); 584 socklen_t peek_off_size = sizeof(id1);
584 getsockopt(this_handle.handle, SOL_SOCKET, SO_PEEK_OFF, &id1, &peek_off_size); 585 getsockopt(this_handle.handle, SOL_SOCKET, SO_PEEK_OFF, &id1, &peek_off_size);
585 getsockopt(other_handle.handle, SOL_SOCKET, SO_PEEK_OFF, &id2, 586 getsockopt(other_handle.handle, SOL_SOCKET, SO_PEEK_OFF, &id2,
586 &peek_off_size); 587 &peek_off_size);
587 return id1 == id2; 588 return id1 == id2;
588 #endif 589 #endif
589 } 590 }
590 591
591 } // namespace edk 592 } // namespace edk
592 } // namespace mojo 593 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/raw_channel.cc ('k') | mojo/edk/system/raw_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698