| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #if !defined(DART_IO_DISABLED) | 5 #if !defined(DART_IO_DISABLED) |
| 6 | 6 |
| 7 #include "platform/globals.h" | 7 #include "platform/globals.h" |
| 8 #if defined(HOST_OS_FUCHSIA) | 8 #if defined(HOST_OS_FUCHSIA) |
| 9 | 9 |
| 10 #include "bin/socket.h" |
| 11 |
| 10 #include <errno.h> // NOLINT | 12 #include <errno.h> // NOLINT |
| 11 #include <fcntl.h> // NOLINT | |
| 12 #include <ifaddrs.h> // NOLINT | |
| 13 #include <net/if.h> // NOLINT | |
| 14 #include <netinet/tcp.h> // NOLINT | |
| 15 #include <stdio.h> // NOLINT | |
| 16 #include <stdlib.h> // NOLINT | |
| 17 #include <string.h> // NOLINT | |
| 18 #include <sys/ioctl.h> // NOLINT | |
| 19 #include <sys/stat.h> // NOLINT | |
| 20 #include <unistd.h> // NOLINT | |
| 21 | 13 |
| 22 #include "bin/fdutils.h" | 14 #include "bin/fdutils.h" |
| 23 #include "bin/file.h" | |
| 24 #include "bin/socket.h" | |
| 25 #include "bin/socket_base_fuchsia.h" | |
| 26 #include "platform/signal_blocker.h" | 15 #include "platform/signal_blocker.h" |
| 27 | 16 |
| 28 // #define SOCKET_LOG_INFO 1 | 17 // #define SOCKET_LOG_INFO 1 |
| 29 // #define SOCKET_LOG_ERROR 1 | 18 // #define SOCKET_LOG_ERROR 1 |
| 30 | 19 |
| 31 // define SOCKET_LOG_ERROR to get log messages only for errors. | 20 // define SOCKET_LOG_ERROR to get log messages only for errors. |
| 32 // define SOCKET_LOG_INFO to get log messages for both information and errors. | 21 // define SOCKET_LOG_INFO to get log messages for both information and errors. |
| 33 #if defined(SOCKET_LOG_INFO) || defined(SOCKET_LOG_ERROR) | 22 #if defined(SOCKET_LOG_INFO) || defined(SOCKET_LOG_ERROR) |
| 34 #define LOG_ERR(msg, ...) \ | 23 #define LOG_ERR(msg, ...) \ |
| 35 { \ | 24 { \ |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 221 } |
| 233 return socket; | 222 return socket; |
| 234 } | 223 } |
| 235 | 224 |
| 236 } // namespace bin | 225 } // namespace bin |
| 237 } // namespace dart | 226 } // namespace dart |
| 238 | 227 |
| 239 #endif // defined(HOST_OS_FUCHSIA) | 228 #endif // defined(HOST_OS_FUCHSIA) |
| 240 | 229 |
| 241 #endif // !defined(DART_IO_DISABLED) | 230 #endif // !defined(DART_IO_DISABLED) |
| OLD | NEW |