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

Side by Side Diff: runtime/bin/socket_fuchsia.cc

Issue 2814773004: Various fixes for sync socket implementation. (Closed)
Patch Set: Various fixes for sync socket implementation. Created 3 years, 8 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
« no previous file with comments | « runtime/bin/socket_android.cc ('k') | runtime/bin/socket_linux.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 (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
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)
OLDNEW
« no previous file with comments | « runtime/bin/socket_android.cc ('k') | runtime/bin/socket_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698