| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |