| OLD | NEW |
| 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 #ifndef MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ | 5 #ifndef MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ |
| 6 #define MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ | 6 #define MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <sys/types.h> // For |ssize_t|. | 9 #include <sys/types.h> // For |ssize_t|. |
| 10 | 10 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 PlatformHandle* handles, | 60 PlatformHandle* handles, |
| 61 size_t num_handles); | 61 size_t num_handles); |
| 62 | 62 |
| 63 // Wrapper around |recvmsg()|, which will extract any attached file descriptors | 63 // Wrapper around |recvmsg()|, which will extract any attached file descriptors |
| 64 // (in the control message) to |PlatformHandle|s (and append them to | 64 // (in the control message) to |PlatformHandle|s (and append them to |
| 65 // |platform_handles|). (This also handles |EINTR|.) | 65 // |platform_handles|). (This also handles |EINTR|.) |
| 66 MOJO_SYSTEM_IMPL_EXPORT ssize_t | 66 MOJO_SYSTEM_IMPL_EXPORT ssize_t |
| 67 PlatformChannelRecvmsg(PlatformHandle h, | 67 PlatformChannelRecvmsg(PlatformHandle h, |
| 68 void* buf, | 68 void* buf, |
| 69 size_t num_bytes, | 69 size_t num_bytes, |
| 70 std::deque<PlatformHandle>* platform_handles); | 70 std::deque<PlatformHandle>* platform_handles, |
| 71 bool should_block = false); |
| 71 | 72 |
| 72 } // namespace edk | 73 } // namespace edk |
| 73 } // namespace mojo | 74 } // namespace mojo |
| 74 | 75 |
| 75 #endif // MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ | 76 #endif // MOJO_EDK_EMBEDDER_PLATFORM_CHANNEL_UTILS_POSIX_H_ |
| OLD | NEW |